<?php
/**
 * File: IndexController.class.php
 * Author: camy <375766145@qq.com>
 * Time: 2018/3/19 11:39
 */

namespace Document\Controller;

use Document\Api\ApiDesc;
use Document\Api\ApiList;
use Think\Controller;

class DocController extends Controller
{
    public function index()
    {
        $service = I('get.service');
        echo $service;
        if ($service) {
            $api = new ApiDesc();
            $api->render();
        } else {
            $api = new ApiList();
            $api->render();
        }
    }
}